<?php

namespace application\entity\db;

/**
 * @document(catelog)
 */
class Catelog {

    /**
     * @id
     * @col(name=id, type=int, identity=true)
     * @comment(Mã danh mục)
     */
    public $id;

    /**
     * @col(name=seoUrl, type=varchar, length=100, index=unique)
     * @comment(Url seo)
     */
    public $seoUrl;

    /**
     * @col(name=type, type=int, index=unique)
     * @comment(Kiểu danh mục)
     */
    public $type;

    /**
     * @col(name=name, type=varchar, length=220)
     * @comment(Tên danh mục)
     */
    public $name;

    /**
     * @col(name=parentId, type=int, index=index)
     * @comment(Mã danh mục cha)
     */
    public $parentId;

    /**
     * @col(name=position, type=int, index=index)
     * @comment(Vị trí)
     */
    public $position;

    /**
     * @col(name=leaf, type=BOOLEAN, index=index)
     * @comment(Cấp lá)
     */
    public $leaf;

    /**
     * @col(name=active, type=BOOLEAN, index=index)
     * @comment(Trạng thái hoạt động)
     */
    public $active;

}
